package cn.zymall.goods.service.impl;

import cn.zymall.common.model.SpuBrand;
import cn.zymall.goods.mapper.SpuBrandMapper;
import cn.zymall.goods.service.SpuBrandService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author lxh
 * @Description 商品品牌业务层接口实现类
 * @date 2020/8/18 23:02
 * @Classname SpuBrandServiceImpl
 **/
@Service
public class SpuBrandServiceImpl extends ServiceImpl<SpuBrandMapper, SpuBrand> implements SpuBrandService {
	@Autowired
	private SpuBrandMapper spuBrandMapper;

	@Override
	public List<SpuBrand> findAll() {
		return spuBrandMapper.findAll();
	}

	@Override
	public void add(SpuBrand spuBrand) {
		spuBrandMapper.add(spuBrand);
	}

	@Override
	public void amend(SpuBrand spuBrand) {
		spuBrandMapper.amend(spuBrand);
	}

	@Override
	public void del(SpuBrand spuBrand) {
		spuBrandMapper.del(spuBrand);
	}

	@Override
	public List<SpuBrand> findAllBrand() {
		return spuBrandMapper.findAllBrand();
	}
}
